<?php


namespace App\Http\Requests\Manage\System\Dictionary\Country;


use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;

class StoreRequest extends FormRequest
{
    /**
     * @return array
     * @author luffyzhao@vip.126.com
     */
    public function rules()
    {
        return [
            'code' => ['required', 'alpha_dash', 'size:3', Rule::unique('countries')],
            'name' => ['required', 'max:50']
        ];
    }
}
